import request from '@/utils/request'

const group_path = "/user"


export function page(page,size) {
  return request({
    url: group_path + '/page',
    method: 'get',
    params:{page,size}
  })
}

export function add(para) {
  return request({
    url: group_path + '/',
    method: 'post',
    data: para,
  })
}

export function del(id) {
  return request({
    url: group_path + '/'+id,
    method: 'delete'
  })
}

export function update(para) {
  return request({
    url: group_path + '/'+para.id,
    method: 'put',
    data: para,
  })
}